package com.springboot.astra.service.serviceImpl;

import com.springboot.astra.bean.Postbody;
import com.springboot.astra.mapper.PostbodyMapper;
import com.springboot.astra.service.PostbodyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PostbodyServiceImpl implements PostbodyService {
    @Autowired
    PostbodyMapper postbodyMapper;
    @Override
    public Postbody getOneById(Integer id) {
        return postbodyMapper.getOneById(id);
    }

    @Override
    public void insertPostbody(Postbody postbody) {
        postbodyMapper.insertPostbody(postbody);
    }

    @Override
    public void updateOneById(Postbody postbody) {
        postbodyMapper.updateOneById(postbody);
    }

    @Override
    public void deleteOneById(Postbody postbody) {
        postbodyMapper.deleteOneById(postbody);
    }
}
